package com.zz.designp._21_state.mineImpl;

/**
 * @author zhr
 */
public class Player {
    private State currState = null;
    private State startState = new StartState();
    private State stopState = new StopState();

    public Player() {
        currState = startState;
    }

    public void start() {
        currState = startState;
        currState.start();
    }
    public void stop() {
        currState = stopState;
        currState.stop();
    }

}
